package com.bdcom.autotest.ui.snp;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;

import javax.swing.Box;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class SnPanelForMCard extends  AbsPanel {
	
//	String[] testData = new String[] { "20031000583" , "20031000584" }; 
	String[] testData = new String[] { "" , "" }; 
	public SnPanelForMCard() {
		this.setBackground(Color.WHITE);
		this.setPreferredSize(new Dimension( 0 , 240 ));
		this.setLayout( new FlowLayout(FlowLayout.LEFT ) );
		Font font2 = new Font("Dialog",Font.PLAIN, 14);
		
		for(   int i=0; i<2  ;i++  ) {
			String indexStr = ""+(i+1);
			JLabel jLabel = new JLabel( "主控" + indexStr+":");
			jLabel.setFont(font2);
			JTextField tsn = new JTextField(20);
			tsn.setFont(font2);
			
			tsn.setText( testData[i]  );
			
			JLabel jLabel2 = new JLabel("类型");
			jLabel2.setFont(font2);
			JTextField ttype = new JTextField(16);
			ttype.setEditable(false);
			ttype.setFont(font2);
			this.add(jLabel);
			this.add(tsn);
			this.add(Box.createHorizontalStrut(15) );
			this.add(jLabel2);
			this.add(ttype);
			numToSNField.put(indexStr, tsn);
			numToTField.put(indexStr, ttype);
		}
		
		
	}

	
	
	
	
}
